package com.cnb.util;


public class SnUtil {
	
	public static String getSN(){
	   String sn=DateUtil.getCurrentDateTime();
	   return sn+rand();
		
	}
	public static String rand(){
		 int n = (int)(Math.random()*999);
		 String str=n+"";
		 if (str.length()==1) {
			 str="00"+str;
		}else if (str.length()==2) {
			 str="0"+str;
		}
		 
		 return str;
	}
	
	public static void main(String[] args) {
		for (int i = 0; i <1000; i++) {
			System.out.println(rand());
		}
		
	}

}
